API Documentation
EntityRenderInfoSlot.h
1 // EntityRenderInfoSlot.h
3 //
5 
6 namespace nkGraphics
7 {
14  {
15  public :
16 
17  // Constructor, destructor
41  EntityRenderInfoSlot (Mesh* mesh, Shader* shader) ;
46 
47  // Getters
52  EntityRenderLodSlot* getLod (unsigned int index) const ;
60  Entity* getParentEntity () const ;
61 
62  // Manipulations
75  void eraseLod (unsigned int index) ;
76 
77  // Operators
90 
91  // Import / Export
97  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
103  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
104  } ;
105 }
nkGraphics::EntityRenderInfoSlot::~EntityRenderInfoSlot
~EntityRenderInfoSlot()
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot
EntityRenderInfoSlot(const EntityRenderInfoSlot &other)
nkGraphics::EntityRenderInfoSlot::operator=
EntityRenderInfoSlot & operator=(const EntityRenderInfoSlot &other)
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::EntityRenderLodSlot
A LOD slot to potentially draw, within a group slot.
Definition: EntityRenderLodSlot.h:15
nkGraphics::EntityRenderInfoSlot::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:14
nkGraphics::EntityRenderInfoSlot::getLods
const nkMemory::BufferCast< EntityRenderLodSlot * > & getLods() const
nkGraphics::EntityRenderInfoSlot::getParentEntity
Entity * getParentEntity() const
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkGraphics::EntityRenderInfoSlot::getLod
EntityRenderLodSlot * getLod(unsigned int index) const
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::EntityRenderInfoSlot::eraseLod
void eraseLod(unsigned int index)
nkGraphics::EntityRenderInfoSlot::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkGraphics::EntityRenderInfoSlot
A slot within the render information.
Definition: EntityRenderInfoSlot.h:14
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot
EntityRenderInfoSlot(Mesh *mesh, Shader *shader)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot
EntityRenderInfoSlot(EntityRenderInfoSlot &&other)
nkGraphics::EntityRenderInfoSlot::addLod
EntityRenderLodSlot * addLod(const EntityRenderLodSlot &lodSlot=EntityRenderLodSlot())
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot
EntityRenderInfoSlot()